package com.exam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "学生回答信息")
public class Answer {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("学生回答")
    private String content;

    @TableField("point_get")
    @ApiModelProperty("得分")
    private Double pointGet;

    @TableField("create_time")
    @ApiModelProperty("回答创建时间")
    private Date createTime;

    @TableField("question_id")
    @ApiModelProperty("题目所属知识点id")
    private Integer questionId;

    @TableField("answer_sheet_id")
    @ApiModelProperty("题目所属教师id")
    private Integer answerSheetId;

    @TableField(exist = false)
    private Question question;

    @TableField(exist = false)
    private AnswerSheet answerSheet;
}
